package com.jy.rhin.domain.notification.receive;

import com.jy.rhin.domain.notification.receive.entity.ReceiveMessageDO;

/**
 * @author dhl
 * @date 2022/6/28
 * @Description
 */
public interface ReceiveMessageDao {

    /**
     * 保存消息接收记录
     * @param receive
     * @return
     */
    Long receive(ReceiveMessageDO receive);

    /**
     * 主键查询
     * @param id
     * @return
     */
    ReceiveMessageDO queryById(Long id);

    /**
     * msgId查询
     * @param msgId
     * @return
     */
    ReceiveMessageDO queryByMsgId(String msgId);
}
